import Login from '../view/login/index'
import Home from '../view/home/index'
import Register from '../view/register'

// 将 auth 设置为 true，表示该路由需要权限校验
const routes = [
  {
    path: '/',
    component: Login
  },
  {
    path: '/login',
    component: Login
  },
  {
    path: '/register',
    component: Register
  },
  {
    path: '/home',
    component: Home,
    auth: true
  },
  {
    path: '/home/classIndex',
    component: Home,
    auth: true
  }, {
    path: '/home/myCenter',
    component: Home,
    auth: true
  }, {
    path: '/home/myCenter/setMyInfo',
    component: Home,
    auth: true
  }, {
    path: '/home/myCenter/classInfo',
    component: Home,
    auth: true
  },
  {
    path: '/home/myCenter/changepassword',
    component: Home,
    auth: true
  },
   {
    path: '/home/schoolIndex',
    component: Home,
    auth: true
  }, {
    path: '/home/schoolIndex/confession',
    component: Home,
    auth: true
  }, {
    path: '/home/schoolIndex/confession/confessionCards',
    component: Home,
    auth: true
  }, 
  {
    path: '/home/schoolIndex/secondHand',
    component: Home,
    auth: true
  }, {
    path: '/home/schoolIndex/confession/createConfession',
    component: Home,
    auth: true
  },{
    path: '/home/schoolIndex/confession/confessionDetail',
    component: Home,
    auth: true
  }, {
    path: '/home/schoolIndex/thingLost',
    component: Home,
    auth: true
  }, {
    path: '/home/schoolIndex/thingLostDetail',
    component: Home,
    auth: true
  }, {
    path: '/home/class/homework',
    component: Home,
    auth: true
  }, {
    path: '/home/class/homework/handleWork',
    component: Home,
    auth: true
  }, {
    path: '/home/class/studyInfo',
    component: Home,
    auth: true
  }, {
    path: '/home/myCenter/myEmail',
    component: Home,
    auth: true
  }, {
    path: '/home/myCenter/emailDetail',
    component: Home,
    auth: true
  }, {
    path: '/home/setting',
    component: Home,
    auth: true
  }, {
    path: '/home/setting/permission',
    component: Home,
    auth: true
  },{
    path: '/home/setting/personnalSet',
    component: Home,
    auth: true
  }, {
    path: '/home/setting/permission/classPermission',
    component: Home,
    auth: true
  }, {
    path: '/home/setting/permission/schoolPermission',
    component: Home,
    auth: true
  }
  , {
    path: '/home/setting/personalization',
    component: Home,
    auth: true
  }, {
    path: '/home/setting/pictureMonitor',
    component: Home,
    auth: true
  }, {
    path: '/home/setting/prizeBackStage',
    component: Home,
    auth: true
  },
  {
    path: '/home/setting/classManage',
    component: Home,
    auth: true
  }
]


export default routes
